Sorted - Verifying the Problem of the Dutch National Flag in Agda
نویسنده
چکیده
منابع مشابه
Probabilistic analysis of algorithms for the Dutch national flag problem
A detailed probabilistic analysis is given of algorithms for the Dutch national flag problem. We derive central and local limit theorems for the cost, as well as probabilities of large deviations. Performance of a related algorithm is also studied. Correspondence Address: Wei-Mei Chen, Department of Applied Mathematics, Tatung University, Taipei 104, Taiwan; e-mail: wmchen@ttu,edu.tw or wmchen@...
متن کاملEngineering a Sort Function
We recount the history of a new qsort function for a C library. Our function is clearer, faster and more robust than existing sorts. It chooses partitioning elements by a new sampling scheme; it partitions by a novel solution to Dijkstra’s Dutch National Flag problem; and it swaps efficiently. Its behavior was assessed with timing and debugging testbeds, and with a program to certify performanc...
متن کاملIntegrating Automated and Interactive Theorem Proving in Type Theory
We introduce an approach of integrating automated theorem proving techniques into the interactive theorem prover Agda. Our approach is generic and flexible, and can be combined with dependently typed programming. We have implemented the special cases of SAT solving and CTL model checking. The tool has been used for verifying the correctness of railway interlocking systems.
متن کاملCase of (Quite) Painless Dependently Typed Programming: Fully Certified Merge Sort in Agda
We present a full certification of merge sort in the language Agda. It features: termination warrant without explicit proof, no proof cost to ensure that the output is sorted, and a succinct proof that the output is a permutation of the input.
متن کاملDatatype ornamentation and the Dutch National Flag problem
Dependently typed programmers are encouraged to use inductivefamilies to integrate constraints with data construction. Differentconstraints are used in different contexts, leading to different ver-sions of datatypes for the same data structure. Modular implemen-tation of common operations for these structurally similar datatypeshas been a longstanding problem. We propose a d...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- J. Funct. Program.
دوره 21 شماره
صفحات -
تاریخ انتشار 2011